IMAPAccount Outlook
Host outlook.office365.com
User yanda1987@outlook.com
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/machine outlook.office365.com login yanda1987@outlook.com/ {print $NF}'"
Port 993
SSLType IMAPS
SSLVersion TLSv1.2
AuthMechs PLAIN
CertificateFile /etc/ssl/certs/ca-certificates.crt
Timeout 120
PipelineDepth 50

IMAPStore Outlook-remote
Account Outlook

MaildirStore Outlook-local
Path ~/.mail/Outlook/
Inbox ~/.mail/Outlook/Inbox
SubFolders Legacy

Channel Outlook
Master :Outlook-remote:
Slave :Outlook-local:
Patterns *
Create Both
Sync All
Expunge Both
SyncState *